Create course offering
open /${baseUrl}/node/add
verifyElementPresent link=Course offering
clickAndWait link=Course offering
type id=edit-title Test course offering
select id=edit-cp-canonical-course-und-hierarchical-select-selects-0 label=Matematik
waitForElementPresent id=edit-cp-canonical-course-und-hierarchical-select-selects-1
select id=edit-cp-canonical-course-und-hierarchical-select-selects-1 label=Matematik 1c
click id=edit-cp-canonical-course-und-hierarchical-select-dropbox-add
waitForTextPresent Matematik›Matematik 1c
type id=edit-body-und-0-value Description of test course offering.
clickAndWait id=edit-submit
verifyTextPresent Description of test course offering.
verifyElementPresent css=img[title="Add to calendar"]
verifyElementPresent css=img[alt="Subscribe to Lessons (Test course offering)"]
verifyElementPresent css=img[alt="CSV"]
verifyElementPresent css=img[alt="XLS"]
verifyElementPresent css=img[alt="Word Document"]
verifyElementPresent css=span.fc-event-time
clickAndWait link=Administer
assertTable css=table.views-table.cols-3.1.1 (empty lesson)
click id=edit-views-bulk-operations-0
click link=Show Advanced actions
clickAndWait id=edit-rules-componentrules-cp-repeat-lesson--4
click id=edit-parameter-end-date-settings-end-date
type id=edit-parameter-end-date-settings-end-date +5 weeks
clickAndWait id=edit-submit
waitForTextPresent Status message Performed Repeat until… on 1 item.
click //div[@id='block-system-main']/div/div/div/div/div[2]/div/div/h2
assertTable css=table.views-table.cols-1.1.0 6
click css=input.vbo-table-select-all.form-checkbox
click link=Show Advanced actions
clickAndWait id=edit-rules-componentrules-cp-fill-lessons--4
click id=edit-parameter-outline-settings-outline
select id=edit-parameter-outline-settings-outline label=Test course outline
click css=option[value="1"]
clickAndWait id=edit-submit
waitForTextPresent Added all 6 lessons in the outline. 0 lesson(s) overshooting lessons were left untouched.
assertTable css=table.views-table.cols-3.1.1 Section one
assertTable css=table.views-table.cols-3.2.1 Section two (1 of 2)
assertTable css=table.views-table.cols-3.3.1 Section two (2 of 2)
assertTable css=table.views-table.cols-3.4.1 Section three, with comma (1 of 3)
assertTable css=table.views-table.cols-3.5.1 Section three, with comma (2 of 3)
assertTable css=table.views-table.cols-3.6.1 Section three, with comma (3 of 3)
click css=input.vbo-table-select-all.form-checkbox
clickAndWait id=edit-rules-componentrules-cp-push-lessons-down
assertTable css=table.views-table.cols-3.1.1 (empty lesson)
clickAndWait link=Week list
verifyElementPresent link=Section one
verifyTextPresent Description of section one.
clickAndWait link=Administer